import 'package:flutter_common_fragement/generated/json/base/json_field.dart';
import 'package:flutter_common_fragement/generated/json/missions_entity.g.dart';
import 'dart:convert';
export 'package:flutter_common_fragement/generated/json/missions_entity.g.dart';

@JsonSerializable()
class MissionsEntity {
	List<MissionsList>? list = [];
	int? total = 0;

	MissionsEntity();

	factory MissionsEntity.fromJson(Map<String, dynamic> json) => $MissionsEntityFromJson(json);

	Map<String, dynamic> toJson() => $MissionsEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class MissionsList {
	String? companyName = '';
	String? companyAvatar = '';
	int? missionId = 0;
	String? missionName = '';
	String? provinceCode = '';
	String? provinceName = '';
	String? cityCode = '';
	String? cityName = '';
	String? areaCode = '';
	String? areaName = '';
	String? address = '';
	int? startTime = 0;
	int? endTime = 0;
	String? missionDescription = '';
	double? missionMoney;
	String? missionTimeType = '';
	String? missionUnit = '';
	String? isDiscussPersonally = '';

	MissionsList();

	factory MissionsList.fromJson(Map<String, dynamic> json) => $MissionsListFromJson(json);

	Map<String, dynamic> toJson() => $MissionsListToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}